package modell;

public class Minutt extends Viser{
	
	private Viser time;
	
	public Minutt(Viser time, int max, int tall) {
		super(max, tall);
		this.time = time;
	}

	@Override
	public void tellOpp(){
		if (tall == max)
			time.tellOpp();
		super.tellOpp();
	}
	
	@Override
	public void tellNed(){
		if (tall <= min)
			time.tellNed();
		super.tellNed();
	}

}
